// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'sn', 'ibizsample0018name', 'description', 'image', 'createman', 'createdate', 'updateman', 'updatedate', 'ibizsample0018id'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizsample0018id;
    }
    set srfkey(value: any) {
        this.$DO.ibizsample0018id = value;
    }
    get srfmajortext() {
        return this.$DO.ibizsample0018name;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizsample0018name = value;
    }
    get sn() {
        return this.$DO.sn;
    }
    set sn(value: any) {
        this.$DO.sn = value;
    }
    get ibizsample0018name() {
        return this.$DO.ibizsample0018name;
    }
    set ibizsample0018name(value: any) {
        this.$DO.ibizsample0018name = value;
    }
    get description() {
        return this.$DO.description;
    }
    set description(value: any) {
        this.$DO.description = value;
    }
    get image() {
        return this.$DO.image;
    }
    set image(value: any) {
        this.$DO.image = value;
    }
    get createman() {
        return this.$DO.createman;
    }
    set createman(value: any) {
        this.$DO.createman = value;
    }
    get createdate() {
        return this.$DO.createdate;
    }
    set createdate(value: any) {
        this.$DO.createdate = value;
    }
    get updateman() {
        return this.$DO.updateman;
    }
    set updateman(value: any) {
        this.$DO.updateman = value;
    }
    get updatedate() {
        return this.$DO.updatedate;
    }
    set updatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get ibizsample0018id() {
        return this.$DO.ibizsample0018id;
    }
    set ibizsample0018id(value: any) {
        this.$DO.ibizsample0018id = value;
    }
    // 界面主键标识
    get ibizsample0018() {
        return this.$DO.ibizsample0018id;
    }

    set ibizsample0018(value: any) {
        this.$DO.ibizsample0018id = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            sn: this.$DO.sn,
ibizsample0018name: this.$DO.ibizsample0018name,
description: this.$DO.description,
image: this.$DO.image,
createman: this.$DO.createman,
createdate: this.$DO.createdate,
updateman: this.$DO.updateman,
updatedate: this.$DO.updatedate,
ibizsample0018id: this.$DO.ibizsample0018id,
        }
	}

}